#encoding = utf-8

import pytest
import requests
import json

from shargeApi.config import *
from shargeApi.login import LoginAPI
import allure

@allure.epic("sharge")
@allure.feature("signtest")
class Testusrmode:

    def setup(self):
        pass

    def teardown(self):
        pass

    @allure.title("修改密码")
    def test01_resetpassword(self):
        url = url_resetpassword
        json_data = {"area":"86","password":"147952la","code":"222222","mobile":"15361441154"}
        jsondata= json.dumps(json_data)
        headers = {
            "Content-Type":"application/json",
            "userid":"1861235258793385986"
        }
        res = requests.post(url = url,data = jsondata.encode('utf-8'),  headers=headers)
        result = json.loads(res.text)
        print(result)


